package fr.service.dao;

import java.util.List;

import fr.beans.User;
import fr.imodele.dao.IModelDaoUser;
import fr.iservice.dao.IServiceDaoUser;

/**
 * @author Caroline Lavaure
 * Project : Caroline aloe vera
 * 9 juil. 2013
 */
public class ServiceDaoUser implements IServiceDaoUser {

	/* ************************************* */
	/*               PROPERTIES              */
	/* ************************************* */
	
	/**
	 * the field IModelDaoUser.
	 */
	private IModelDaoUser iModelDaoUser; 
	
	/* ************************************* */
    /*               METHODS                 */
	/* ************************************* */

	@Override
	public final boolean save(final User pUser) {
		// TODO Auto-generated method stub
		return iModelDaoUser.save(pUser);
	}

	@Override
	public final boolean update(final User pUser) {
		// TODO Auto-generated method stub
		return iModelDaoUser.update(pUser);
	}

	@Override
	public final boolean saveOrUpdate(final User pUser) {
		// TODO Auto-generated method stub
		return iModelDaoUser.saveOrUpdate(pUser);
	}

	@Override
	public final boolean delete(final int pId) {
		// TODO Auto-generated method stub
		return iModelDaoUser.delete(pId);
	}

	@Override
	public final User read(final int pId) {
		// TODO Auto-generated method stub
		return iModelDaoUser.read(pId);
	}

	@Override
	public final List<User> lister() {
		// TODO Auto-generated method stub
		return iModelDaoUser.lister();
	}

	@Override
	public final User readUser(final String login, final String mdp) {
		// TODO Auto-generated method stub
		return iModelDaoUser.readUser(login, mdp);
	}

	/* ************************************* */
	/*         GETTERS & SETTERS             */
	/* ************************************* */

	/**
	 * @return the iModelDaoUser
	 */
	public final IModelDaoUser getiModelDaoUser() {
		return iModelDaoUser;
	}

	/**
	 * @param pIModelDaoUser .
	 */
	public final void setiModelDaoUser(IModelDaoUser pIModelDaoUser) {
		this.iModelDaoUser = pIModelDaoUser;
	}

	
}
